﻿@using DLULearningNetworkModel;
@using DLULearningNetwork.ViewModels;
@{
    ViewBag.Title = "Info";
    Layout = "~/Views/Shared/UserPageLayout.cshtml";
    Account accountOwner = ViewBag.AccountOwner;
    Profile profileOfAccountOwner = ViewBag.ProfileOfAccountOwner;
}

@section cssjs{

}


@section userPageMenu{
    @Html.Partial("UserPageMenu", accountOwner)
}
@section leftContent{
    <h3 style="border-bottom:2px solid #d4d4d4; padding-bottom:5px;">@accountOwner.LastName_s @accountOwner.FirstName_s - Thông tin cá nhân</h3>
    <br/>
    <div class="box-info">
        @if (ViewBag.ShareBasicInfo)
        {
            <div class="box-title">
                <h3>
                    Thông tin cơ bản</h3>
            </div>
            <div class='box-cont'>
                <div class="left">
                    Họ và tên</div>
                <div class="right">@accountOwner.LastName_s @accountOwner.FirstName_s</div>
                <div class="left">
                    Nickname</div>
                <div class="right">@accountOwner.Nickname_s</div>
                <div class="left">
                    Ngày sinh</div>
                <div class="right">@string.Format("{0:dd/MM/yyyy}", accountOwner.DateOfBirth_dt)</div>
                <div class="left">
                    Giới tính</div>
                <div class="right">
                    @{string gt = accountOwner.Sex_b ? "Nam" : "Nữ";}@gt</div>
            </div>
            <div style="clear:both;"></div>
        }
        @if (ViewBag.ShareContactInfo)
        {
            <div class="box-title">
                <h3>
                    Thông tin liên hệ</h3>
            </div>
            <div class="box-cont">
                @if (profileOfAccountOwner.IMYahoo_s != null)
                {
                <div class="row">
                    <div class="left">
                        IMYahoo :
                    </div>
                    <div class="right">@profileOfAccountOwner.IMYahoo_s</div>
                </div>
                } 
                @if (profileOfAccountOwner.IMSkype_s != null)
                {
                <div class="row">
                    <div class="left">
                        IMSkype :
                    </div>
                    <div class="right">@profileOfAccountOwner.IMSkype_s</div>
                </div>
                } 
                @if (profileOfAccountOwner.IMMSN_s != null)
                {
                <div class="row">
                    <div class="left">
                        IMMSN :
                    </div>
                    <div class="right">@profileOfAccountOwner.IMMSN_s</div>
                </div>
                }
                @if (profileOfAccountOwner.IMGTalk_s != null)
                {
                <div class="row">
                    <div class="left">
                        IMGTalk :
                    </div>
                    <div class="right">@profileOfAccountOwner.IMGTalk_s</div>
                </div>
                }
                @if (profileOfAccountOwner.IMGTalk_s != null)
                {
                <div class="row">
                    <div class="left">
                        IMGTalk :
                    </div>
                    <div class="right">@profileOfAccountOwner.IMGTalk_s</div>
                </div>
                }
            </div>
            <div style="clear:both;"></div>
        }
        @if (ViewBag.ShareEducationInfo)
        {
            <div class="box-title">
                <h3>
                    Thông tin học vấn</h3>
            </div>
            <div class='box-cont'>
            @Html.Partial("ListEducationInfo", ViewBag.LstEducationInfoVM as List<EducationInfoViewModel>)
            </div>
            <div style="clear:both;"></div>
        }
        @if (ViewBag.ShareOccupationInfo)
        {
            <div class="box-title">
                <h3>
                    Thông tin nghề nghiệp</h3>
            </div>
            <div class='box-cont'>
            @Html.Partial("ListOccupationInfo", ViewBag.LstOccupationInfoVM as List<OccupationInfoViewModel>)
            </div>
            <div style="clear:both;"></div>
        }
        @if (ViewBag.ShareAccomodationInfo)
        {
            <div class="box-title">
                <h3>
                    Thông tin chỗ ở</h3>
            </div>
            <div class='box-cont'>
            @Html.Partial("ListAccomodationInfo", ViewBag.LstAccomodationInfoVM as List<AccomodationInfoViewModel>)
            </div>
            <div style="clear:both;"></div>
        }
        @if (ViewBag.ShareInterestInfo)
        {
            <div class="box-title">
                <h3>
                    Thông tin sở thích</h3>
            </div>
            <div class='box-cont'>
            @ViewBag.InterestInfo
            </div>
            <div style="clear:both;"></div>
        }
    </div>
}
@section rightBox{
}
